//:C03:StringIndexing.cpp
#include <cassert>
#include <string>
using namespace std;

int main(void) {
  string s("1234");
  assert(s[1] == '2');
  assert(s.at(1) == '2');
}